package io.ganguo.chat.route.biz.service;

import io.ganguo.chat.route.biz.entity.Message;

import java.util.List;

/**
 * Created by Tony on 2/23/15.
 */
public interface MessageService {

    List<Message> findByFrom(Long from);

    List<Message> findByTo(Long to);

    List<Message> findByToOrderByCreateAtDesc(Long to);

    List<Message> findByToOrderByCreateAtAsc(Long to);

}
